package com.aSemy.qotwReader.core.parseInput;

import java.net.URL;

import com.aSemy.qotwReader.core.types.ArgumentOfCommand;


public enum DownloadAction implements ArgumentOfCommand
{
    /** Downloads all questions. */
    all,
    /** Downloads the most recently closed question. */
    latest,
    /** Downloads the question in the URL given in the command line. */
    url;
    
    /** The parsed URL to download. */
    private URL downloadUrl = null;
    
    /**
     * Set the URL to download.
     * @param downloadUrl The URL to download.
     */
    public void setUrl(URL downloadUrl) { this.downloadUrl = downloadUrl; }
    /**
     * Get the URL to download.
     * @return The URL to download.
     */
    public URL getUrl() { return this.downloadUrl; }
} 